django foreign key field on delete do nothing

43

django foreign key field on delete do nothing -

from django.db import models

class Car(models.Model):
    manufacturer = models.ForeignKey('Manufacturer',on_delete=models.DO_NOTHING,)

class Manufacturer(models.Model):
    pass

Comments

Submit
0 Comments